package com.esiag.isidis.fi.pdsteam.views;

import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;

import com.esiag.isidis.fi.pdsteam.model.SensorType;

public class LabledCombo extends JPanel {
	JLabel lbl;
	JComboBox cmb;
	public LabledCombo(String lbl,int width) {
		super();
		this.lbl = new JLabel(lbl);
		this.lbl.setSize(width, 10);
		this.cmb = new JComboBox(SensorType.values());
		this.add(this.lbl);
		this.add(cmb);
	}
	public String getText() {
		return cmb.getSelectedItem().toString();
	}
	
}
